/**
 * 
 */
package org.xlab.baseframework.common.entity;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @author makubex
 *
 */
public class PasswordAuthenticator extends Authenticator {
	private String username;
	private String password;
	
	/**
	 * @param username
	 * @param password
	 */
	public PasswordAuthenticator(String username, String password) {
		super();
		this.username = username;
		this.password = password;
	}
	
	protected PasswordAuthentication getPasswordAuthentication() {
	    return new PasswordAuthentication(username, password);
	}
}
